package com.xin.di.uav.applet.resp;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class UserResp {

    private int total = 0;

    private List<Record> recordList = new ArrayList<>();

    @Data
    public static class Record {
        @ExcelIgnore
        private String id; // UUID主键
        @ExcelProperty(value = "手机号", index = 0)
        private String phone; // 手机号(带国际区号)
        @ExcelIgnore
        private String displayName; // 账户显示名
        @ExcelIgnore
        private String role; // 角色(admin/user/guest)
        @ExcelIgnore
        private boolean status = true; // 状态(默认启用)

        @ExcelProperty(value = "状态", index = 2)
        private String statusString; // 状态(默认启用)
        @ExcelIgnore
        private String creator; // 创建人ID
        @ExcelProperty(value = "创建时间", index = 1)
        private Date createdAt; // 创建时间
        @ExcelIgnore
        private String updater; // 更新人ID
        @ExcelIgnore
        private Date updatedAt; // 更新时间
        @ExcelProperty(value = "最后登录时间", index = 3)
        private Date lastLoginTime;

    }
}
